<template>
  <div class="min-h-screen bg-base-100 flex items-center justify-center">
    <div class="text-center">
      <h1 class="text-9xl font-bold text-primary">404</h1>
      <h2 class="text-3xl font-bold mt-6 mb-2">页面不存在</h2>
      <p class="text-base-content/70 mb-8">您访问的页面未找到或者已经被删除</p>
      
      <div class="flex flex-col md:flex-row gap-4 justify-center">
        <button @click="goBack" class="btn btn-outline gap-2">
          <icon-arrow-left class="w-5 h-5" />
          返回上一页
        </button>
        <RouterLink to="/" class="btn btn-primary gap-2">
          <icon-home class="w-5 h-5" />
          返回首页
        </RouterLink>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter();

const goBack = () => {
  router.back();
};
</script> 